package com.bridgeintelligent.tag.webserver.dim.mgmt.api;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.util.List;

/**
 * Created by JackCheung on 2019/9/27 5:31 PM.
 */
@Getter
@Setter
@NoArgsConstructor
public class DepartmentRep {

    //返回状态
    private String status;
    //消息
    private String message;
    //数据
    private Data data;

    public static class Data {

        //组织集合
        private List<Org> org;

        public List<Org> getOrg() {
            return org;
        }

        public void setOrg(List<Org> org) {
            this.org = org;
        }

        public static class Org {

            //编码
            private String code;
            //父编码
            @JsonProperty("parent-code")
            private String parentCode;
            //属于
            private String owner;
            //状态
            private String status;
            //展示名
            @JsonProperty("display-name")
            private String displayName;

            public String getCode() {
                return code;
            }

            public void setCode(String code) {
                this.code = code;
            }

            @JsonIgnore
            public String getParentCode() {
                return parentCode;
            }

            public void setParentCode(String parentCode) {
                this.parentCode = parentCode;
            }

            public String getOwner() {
                return owner;
            }

            public void setOwner(String owner) {
                this.owner = owner;
            }

            public String getStatus() {
                return status;
            }

            public void setStatus(String status) {
                this.status = status;
            }

            @JsonIgnore
            public String getDisplayName() {
                return displayName;
            }

            public void setDisplayName(String displayName) {
                this.displayName = displayName;
            }
        }
    }
}
